package com.xp.code.daoImpl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xp.code.dao.IExampleDao;
import com.xp.code.jpa.DefaultJPADAO;

@Repository("exampleDao")
public class ExampleDao extends DefaultJPADAO implements IExampleDao {

	/* (non-Javadoc)
	 * @see com.xp.code.daoImpl.IExampleDao#getInfo()
	 */
	@SuppressWarnings("unchecked")
	public List<Object[]> getInfo(){
		String sql="select empno,ename,job,hiredate,sal from emp";
		List<Object[]> infoList=this.getEntityManager().createNativeQuery(sql).getResultList();
		return infoList;
	}
}
